JBoss Community Archive (Read Only)

Teiid 8.3

WITH Clause

Teiid supports non-recursive common table expressions via the WITH clause.  WITH clause items may be referenced as tables in subsequent with clause items and in the main query. The WITH clause can be thought of as providing query scoped temporary tables.

Usage:

WITH name [(column, ...)] AS (query expression) ...

Syntax Rules:

The WITH clause is also subject to optimization and it's entries may not be processed if they are not needed in the subsequent query.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:38:13 UTC, last content change 2013-03-14 16:28:31 UTC.